package music_store.ms.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class Music {
    private Integer id;

    private String name;

    private String artist;

    private String albumName;

    private Integer albumId;

    private Integer numInAlbum;

    private BigDecimal price;

    private Integer status;

    private Date createTime;

    private Date updateTime;

    public Music(Integer id, String name, String artist, String albumName, Integer albumId, Integer numInAlbum, BigDecimal price, Integer status, Date createTime, Date updateTime) {
        this.id = id;
        this.name = name;
        this.artist = artist;
        this.albumName = albumName;
        this.albumId = albumId;
        this.numInAlbum = numInAlbum;
        this.price = price;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Music() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist == null ? null : artist.trim();
    }

    public String getAlbumName() {
        return albumName;
    }

    public void setAlbumName(String albumName) {
        this.albumName = albumName == null ? null : albumName.trim();
    }

    public Integer getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Integer albumId) {
        this.albumId = albumId;
    }

    public Integer getNumInAlbum() {
        return numInAlbum;
    }

    public void setNumInAlbum(Integer numInAlbum) {
        this.numInAlbum = numInAlbum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}